import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home/Home.vue";
import Monitor from "./views/Monitor";
import Events from "./views/Events";
import StationAnalysis from "./views/StationAnalysis";
import TabContent from "./views/StationAnalysis/tabContent.vue"

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    // {
    //   path: "/",
    //   name: "monitor",
    //   component: Monitor
    // },
    {
      path: "/",
      name: "home",
      component: Home
    },
    {
      path: "/monitor",
      name: "monitor",
      component: Monitor
    },
    {
      path: "/station-analysis",
      name: "station-analysis",
      component: StationAnalysis,
      children: [
        {
          path: 'station/:station/:dateTime',
          name: 'station',
          component: TabContent
        }
      ]
    },
    {
      path: "/events",
      name: "events",
      component: Events
    }
  ]
});
